package org.wyp.wang;

import org.apache.shiro.SecurityUtils;

/**
 * Created by lenovo on 2017/6/26.
 */
public class AuthorizeDemo2 {

    public static void main(String[] args) {
        WangUtils.login("classpath:authorize-shiro2.ini","wang","1234");
        System.out.println(SecurityUtils.getSubject().isPermitted("dog:A"));
        System.out.println(SecurityUtils.getSubject().isPermitted("dog:B"));
        System.out.println(SecurityUtils.getSubject().isPermitted("dog:C"));

    }
}
